/**
 *
 */
package com.drug.mingkang.permission.model;

import java.util.List;

/**
 * 树节点模型
 * @author wcj
 * @date 2020年8月11日
 * @version
 */
public class TreeNode {

	private String id ;
	private String name; //没有复选框
	private boolean open =false;
	//子级
	private List<TreeNode> children;
	private boolean checked;

	private String label ;	//有复选框
	private boolean disabled =false;

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public boolean isDisabled() {
		return disabled;
	}

	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isOpen() {
		return open;
	}

	public void setOpen(boolean open) {
		this.open = open;
	}

	public List<TreeNode> getChildren() {
		return children;
	}
	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}
	public boolean isChecked() {
		return checked;
	}
	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	@Override
	public String toString() {
		return "TreeNode{" +
				"id='" + id + '\'' +
				", label='" + name + '\'' +
				", disabled=" + open +
				", children=" + children +
				", checked=" + checked +
				'}';
	}
}
